package com.caiyi.tips.core.util;

/*
 * @author Cliff.ZhouYang
 * @date 2017/11/8 11:06
 */
public class StringUtil {
    public StringUtil() {
    }

    public static String trim(Object obj) {
        return obj == null ? "" : obj.toString().trim();
    }

    public static boolean isEmpty(String str) {
        return str == null || "".equals(str.trim());
    }

    public static boolean isNotEmpty(String str) {
        return !isEmpty(str);
    }
}
